﻿using System.Windows;
using BookSourceVerification.modelview;

namespace BookSourceVerification.utils;

public class UiConsoleUtils
{

    /// <summary>
    /// 存疑，代码真的能这么写么？毕竟是VerifyBookSourceViewModel中的属性
    /// </summary>
    /// <param name="log"></param>
    public static void Log(string log)
    {
        Application.Current.Dispatcher.Invoke(() =>
        {
            VerifyBookSourceViewModel.ConsoleOutput.Add(log);
        });
    }
}